package com.youngjun.user.mapper;

import com.youngjun.common.mybatis.mapper.support.BaseMapper;
import com.youngjun.user.pojo.domain.FunctionInterface;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FunctionInterfaceMapper extends BaseMapper<FunctionInterface> {

    /**
     * 根据功能id删除关系
     * @param functionId 功能id
     */
    void deleteWithLogicByFunctionId(Long functionId);

    /**
     * 根据接口id删除关系
     * @param interfaceId 接口id
     */
    void deleteWithLogicByInterfaceId(Long interfaceId);


    /**
     * 根据删除关系
     * @param functionId 功能id
     * @param interfaceId 接口id
     */
    void delete(@Param("functionId") Long functionId,@Param("interfaceId") Long interfaceId);

}